package com.tzy.gateway.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;
/**
 * 过滤器
 */
@Slf4j
@Component
@WebFilter
public class HelloFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) {

    }
    @Override
    public void doFilter(ServletRequest request, ServletResponse response,
                         FilterChain filterChain) throws IOException, ServletException {
        log.info("进入到过滤器1啦");
        filterChain.doFilter(request,response);
    }
    @Override
    public void destroy() {

    }
}
